#ifndef __TREELIST_HEAD__
#define __TREELIST_HEAD__
#include "..\DuiLib\UIlib.h"
#include <vector>
using namespace DuiLib;
class CNode
{
public:
	CNode();
	~CNode();
	CListContainerElementUI* m_pItem ; 
	int ChildNum();
	void AddChild(CNode* pChild);
	void RemoveChild(CNode* pChild);
	CNode* GetChild(int nIndex);
	void SetOwner(CNode* pOwner);
	
private:
	std::vector<CNode*> m_aChildren;
	CNode* m_pOwner;

};

#endif //__TREELIST_HEAD__